#include "StdAfx.h"
#include "DateTimeUtil.h"
#include <time.h>

DateTimeUtil::DateTimeUtil(void)
{
}


DateTimeUtil::~DateTimeUtil(void)
{
}


CString DateTimeUtil::currentDateTime14()
{
	time_t tmNow = time(NULL);
	tm ttm;
	localtime_s(&ttm,&tmNow);

	CString str;
	str.AppendFormat("%4d%02d%02d%02d%02d%02d",ttm.tm_year+1900,ttm.tm_mon+1,ttm.tm_mday,ttm.tm_hour,ttm.tm_min,ttm.tm_sec);

	return str;
}